package com.xpresso.utils.maps;

import java.util.Date;

public class Tile {

	protected String url;
	protected String filePath;
	protected Coordinate coordinate;
	protected Date timestamp;
	protected String zoomstring;
	protected long fileSize;
	
	public Tile(){
		
	}
	
	public Tile(Coordinate coordinate, String url, String filePath, String zoomstring){
		this.coordinate = coordinate;
		this.url = url;
		this.filePath = filePath;
		this.zoomstring = zoomstring;
	}
	
	public String toString(){
		return "\nTile coordinate: (long: " + coordinate.getLongitude() + ", lat:" + coordinate.getLatitude() + ") URL: " + url;   
	}
	
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Coordinate getCoordinate() {
		return coordinate;
	}
	public void setCoordinate(Coordinate coordinate) {
		this.coordinate = coordinate;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public String getZoomstring() {
		return zoomstring;
	}

	public void setZoomstring(String zoomstring) {
		this.zoomstring = zoomstring;
	}

	public long getFileSize() {
		return fileSize;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
	
}
